package com.wiloon.java8x.basic.foo;

/*
 * Created by roy on 8/30/17;
 */
class Child extends Parent {
    private static String field0 = "field0-child-value";
    private static String field1 = "field1-child-value";


    public Child() {
        field2 = "field2-child-value";
    }


    public void method1() {
        super.method0();
        System.out.println("super.method0");
        this.method0();
        System.out.println("this.method0");
        System.out.println("child.method1.field2:" + field2);
    }

    protected void method2() {
        System.out.println(field0);
    }
}
